﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FAQs.ascx.cs" Inherits="FAQs" %>

<link rel="stylesheet" type="text/css" href="../Style/style.css" />
<table border="0" cellpadding="0" cellspacing="0" style="width: 700px">
    <tr>
        <td style="width: 9px" align="left">
            <img src="Images/left1.png" /></td>
        <td background="Images/midle1.png" style="width: 685px" align="center" id="textmenu">
            Câu hỏi thường gặp</td>
        <td style="width: 9px" align="right">
            <img src="Images/right1.png" /></td>
    </tr>
    <tr>
        <td id="bordermenu" align="center" background="Images/bg-contend.jpg" colspan="3" style="height: 15px;width: 700px;">
            <asp:Panel ID="Panel1" runat="server" Width="680px">
                <br />
                <asp:GridView ID="gvwFAQ" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="#c9c8c8" BorderStyle="Double" BorderWidth="3px"
                    CellPadding="4" DataKeyNames="FAQID" GridLines="Horizontal" OnPageIndexChanging="gvwFAQ_PageIndexChanging"
                    OnRowCancelingEdit="gvwFAQ_RowCancelingEdit" OnRowDeleting="gvwFAQ_RowDeleting"
                    OnRowEditing="gvwFAQ_RowEditing" OnRowUpdating="gvwFAQ_RowUpdating" Width="680px">
                    <RowStyle BackColor="WhiteSmoke" ForeColor="#A62800" />
                    <Columns>
                        <asp:BoundField DataField="FAQID" HeaderText="M&#227;" ReadOnly="True" />
                        <asp:BoundField DataField="FAQName" HeaderText="T&#234;n c&#226;u hỏi" />
                        <asp:BoundField DataField="FAQDetail" HeaderText="Nội dung" />
                        <asp:CommandField ShowEditButton="True" CancelText="Tho&#225;t" EditText="Sửa" UpdateText="Cập nhật" />
                        <asp:CommandField ShowDeleteButton="True" DeleteText="X&#243;a" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#333333" />
                    <PagerStyle BackColor="#F6CAB8" ForeColor="White" HorizontalAlign="Center" />
                    <EmptyDataTemplate>
                        &nbsp;
                    </EmptyDataTemplate>
                    <SelectedRowStyle BackColor="#F6CAB8" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#A62800" BorderColor="#c9c8c8" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
                <br />
                <asp:Button ID="btnAdd" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                    Font-Bold="True" ForeColor="#A62800" OnClick="btnAdd_Click" Text="Thêm mới" /><br />
                <br />
            </asp:Panel>
            <br />
        </td>
    </tr>
</table>
